package com.qq.supplier.service.impl;

import com.qq.supplier.entity.Part;
import com.qq.supplier.entity.PartIn;
import com.qq.supplier.mapper.PartMapper;
import com.qq.supplier.service.PartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class PartServiceImpl implements PartService {

    @Autowired
    PartMapper partMapper;


    @Override
    public int addPart(Part part) {
        return partMapper.addPart(part);
    }

    @Override
    public List<Part> queryAll() {
        return partMapper.queryAll();
    }

    @Override
    public PartIn queryOne(String id) {
        return partMapper.queryOne(id);
    }

    @Override
    public int editPartIn(PartIn partIn) {
        return partMapper.editPartIn(partIn);
    }

    @Override
    public List<PartIn> finds() {
        return partMapper.finds();
    }

    @Override
    public PartIn select(Part part) {
        return partMapper.select(part);
    }

    @Override
    public int addPartIn(Part part) {
        return partMapper.addPartIn(part);
    }
}
